LearningStoreItemIdentifier Constructor (string, long)

Create a new instance of the LearningStoreItemIdentifier class.

Parent Type: LearningStoreItemIdentifier

Namespace: Microsoft.LearningComponents.Storage

Assembly: Microsoft.LearningComponents.Storage.dll

Syntax
C#

public LearningStoreItemIdentifier (
string itemTypeName,
long key

)

Parameters

itemTypeName

Name of the item type to which the identifier refers.

key

The unique integer value assigned to the item. This must be a positive integer.

Exceptions
Exception type Condition
ArgumentNullException

itemTypeName is a null reference.

ArgumentOutOfRangeException

key is not a valid positive integer.

Example

The following code creates a reference to the user with a key of 50:

C#
LearningStoreItemIdentifier id = new LearningStoreItemIdentifier("UserItem", 50);